﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CateNews0201.ascx.cs" Inherits="SEVN.Web.Framework.Modules.News.CateNews" %>
<link href="../../Styles/CateNews0201.css" rel="stylesheet" />
<div id="catenews0201">
    <asp:DataList ID="DataList1" runat="server" OnItemDataBound="DataList1_ItemDataBound">
        <ItemTemplate>
            <div id="cate-name">
                <a href='<%#Eval("Url") %>?Cid=<%#Eval("CategoryID") %>'>
                    <%#Eval("CategoryName") %></a>               
            </div>
            <div id="Load-cate">
                <asp:HiddenField ID="hf1" runat="server" Value='<%#Eval("CategoryID") %>' />
                <div id="cate-left">
                    <asp:Repeater ID="rpthome" runat="server">
                        <ItemTemplate>
                            <div id="cate-img">
                                <img src='<%#Eval("Image") %>' title=' <%#Eval("Title")%>' />
                            </div>
                            <div id="cate-title">
                                <a href='News.aspx?nid=<%#Eval("NewsID") %>&cid=<%#Eval("CategoryID") %>'>
                                    <%#Eval("Title")%></a><br />
                                <span class="dangngay">Đăng ngày:
                                       <%#Eval("CreateDate", "{0:dd/MM/yyyy HH:mm}")%></span>
                            </div>
                            <div id="cate-subtitle">
                                <%#Eval("SubTitle") %>
                            </div>
                            <span class="xemtiep"><a href="#">
                                <img src="../../Images/Design/0201_icon_minipost.gif" />&nbsp;&nbsp;Xem tiếp</a></span>

                            <%--<span class="xemtiep"><a href='News.aspx?nid=<%#Eval("NewsID") %>&cid=<%#Eval("CategoryID") %>'
                    title='<%#Eval("Title")%>'>Xem tiếp >> </a></span>--%>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                <div id="cate-right">
                    <asp:Repeater ID="RptRelateNews" runat="server">
                        <ItemTemplate>
                            <div id="kvc">
                                <img src='<%#Eval("Image") %>' title=' <%#Eval("Title")%>' />
                            </div>
                            <div id="kvc1">
                                <a href="News.aspx?nid=<%#Eval("NewsID") %>&cid=<%#Eval("CategoryID") %>">
                                    <%#Eval("Title") %></a>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </div>
        </ItemTemplate>
    </asp:DataList>
</div>
